//package wifiunion.com.notice;
//
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//import android.os.Bundle;
//import android.text.TextUtils;
//
//
//import java.util.ArrayList;
//
//import wifiunion.com.notice.entity.PushEntity;
//
///**
// * Created by Administrator on 2018/4/29 0029.
// */
//
//public class IntelligenceReceiver extends BroadcastReceiver {
//
//
//    @Override
//    public void onReceive(Context context, Intent intent) {
//
//        String action = intent.getAction();
//        if ("com.wifiunion.intelligencegate.receiver".equals(action)) {
//            String pushEntity = intent.getStringExtra("pushEntity");
//            sendNoticeBroadCast(context, pushEntity);
//        } else if ("com.wifiunion.intelligencegate.restart".equals(action)) {
//            throw new RuntimeException("定时重启任务抛出的异常");
//        } else if ("com.wifiunion.intelligencegate.restartservice".equals(action)) {
////            context.startService(new Intent(context, IntelligenceBackService.class));
//        }
//
//    }
//
//    private void sendNoticeBroadCast(Context context, String pushEntity) {
//        Intent it = new Intent(Constants.PUSH_ACTION);
//        Bundle bd = new Bundle();
//        bd.putString("pushEntity", pushEntity);
//        it.putExtras(bd);
//        context.sendBroadcast(it);
//    }
//}
